@import "mixin";

.header {
  background-color: $color3;
  color: $color2;
  padding: px2rem(10px) px2rem(20px);
  align-items: center;
  @include box-flex;
  .logo {
    @include flex(1);
    img {
      width: px2rem(74px);
    }
  }
  .info {
    @include flex(1);
    ul {
      @include box-flex;
      justify-content: flex-end;
      align-items: center;
      li {
        display: inline-block;
        vertical-align: middle;
        margin: 0 px2rem(15px);
        justify-content: center;
        align-items: center;
        @include box-flex;
        img {
          width: px2rem(50px);
          height: px2rem(50px);
          @include rounded(50%);
          margin-right: px2rem(10px);
        }
      }
    }
  }
}

.container {
  padding-bottom: px2rem(80px);
}

.footer {
  background-color: $color3;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  ul {
    @include box-flex;
    li {
      @include flex(1);
      a {
        color: $color2;
        text-align: center;
        display: block;
        padding: px2rem(10px) 0;
      }
      &:first-child {
        i:before {
          content: '\e62e';
          display: block;
        }
      }
      &:nth-child(2) {
        i:before {
          content: '\e646';
          display: block;
        }
      }
      &:nth-child(3) {
        i:before {
          content: '\e611';
          display: block;
        }
      }
      &:nth-child(4) {
        i:before {
          content: '\e698';
          display: block;
        }
      }
    }
  }
}

.my-slider {
  position: relative;
  padding: 0 px2rem(20px);
  .left, .right {
    position: absolute;
    content: ' ';
    display: block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    background-color: $color4;
    top: 50%;
    margin-top: -9px;
    z-index: 2;
    text-align: center;
    color: $color2;
    font-size: 16px;
  }
  .left {
    left: 0;
  }
  .right {
    right: 0;
  }
  ul {
    text-align: center;
    white-space: nowrap;
    position: relative;
    left: 0;
    -webkit-transition: left 0.25s;
    -moz-transition: left 0.25s;
    -o-transition: left 0.25s;
    transition: left 0.25s;
    width: 100%;
    li {
      text-align: center;
      display: inline-block;
      width: 33.333%;
      font-size: 12px;
      a {
        display: block;
        height: px2rem(64px);
        line-height: px2rem(64px);
      }
      &.active a {
        background-color: $color7;
      }
    }
  }
}

.yd-cell-right {
  img {
    height: px2rem(80px);
  }
}

.text-center {
  text-align: center;
}

.yd-btn-primary {
  background-color: $color8;
  &:active {
    background-color: $color8;
    opacity: 0.8;
  }
}

.yd-preview {
  margin-bottom: px2rem(15px);
}

.menu {
  background-color: $color2;
  width: 100%;
  position: relative;
  overflow: hidden;
  @include box-shadow(0 3px 15px rgba(180, 180, 180, .2), 0 3px 15px rgba(180, 180, 180, .2), 0 3px 15px rgba(180, 180, 180, .2));
  ul {
    text-align: right;
  }
}

.no-data {
  text-align: center;
  color: $color5;
  i {
    color: $color10;
    margin-right: px2rem(10px);
  }
}

.yd-backtop {
  bottom: px2rem(150px);
}

.yd-tab-custom {
  .yd-tab {
    width: 100%;
    overflow: hidden;
  }
  .yd-tab-nav:after {
    border-bottom: none !important;
  }
  .yd-tab-panel {
    background: none;
  }
  ul {
    display: inline-block;
    white-space: nowrap;
    left: 0;
    -webkit-transition: left .25s;
    transition: left .25s;
    width: 100%;
    li {
      display: inline-block;
      font-size: 0.22rem;
      border-bottom: 1px solid #b2b2b2;
      &.yd-tab-nav-item {
        width: 33.3333%;
      }
    }
  }
}